<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <h1>展示员工数据列表</h1>
    <table border="1">
        <tr>
            <th>id</th>
            <th>年龄</th>
            <th>姓名</th>
            <th>性别</th>
            <th>地址</th>
        </tr>

        <c:forEach items="${employeeList}" var="e">
            <tr>
                <td>${e.id}</td>
                <td>${e.age}</td>
                <td>${e.name}</td>
                <td>${e.sex}</td>
                <td>${e.address}</td>
                <td><a href="${pageContext.request.contextPath}/employee/findById/${e.id}">修改</a> </td>
                <td><a href="${pageContext.request.contextPath}/employee/delete/${e.id}">删除</a> </td>
            </tr>
        </c:forEach>

    </table>
</body>
</html>
